<template>
	<view style="padding: 30rpx 0;">
		<view class="box">
			<view class="line">

				<view class="" style="color: #010101;">
					账号注销
				</view>
				<u-icon name="arrow-right" color="#838383"></u-icon>
			</view>
			<view class="line">

				<view class="" style="color: #010101;">
					关于我们
				</view>
				<u-icon name="arrow-right" color="#838383"></u-icon>
			</view>
			<view class="line" @click="clear">

				<view class="" style="color: #010101;">
					清除缓存
				</view>
				<u-icon name="arrow-right" color="#838383"></u-icon>
			</view>
			<view class="btn" @click="logout">
				退出登录
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},

		methods: {
			clear(){
				uni.$u.toast('缓存已清除')
			},
			logout() {
				uni.removeStorageSync("token")
				uni.removeStorageSync("userInfo")
				uni.reLaunch({
					url: "/pages/login/login"
				})
			},

		}
	}
</script>
<style scoped lang="scss">
	.box {
		margin: 0 30rpx;
		background-color: white;
		border-radius: 30rpx;
		padding: 30rpx 0;

		.line {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 30rpx;
		}

		.btn {
			background-color: #2DBC26;
			color: white;
			padding: 26rpx 0;
			margin: 30rpx auto;
			width: 60%;
			border-radius: 100px;
			text-align: center;
		}
	}
</style>